﻿<%@ Page Language="C#" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="FinianceAccountsReceivable_config.aspx.cs" Inherits="Runda.CMS.Portal.Finiance.FinianceAccountsReceivable_config" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <link href="../Content/global.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
     <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" /> 
    <script src="../Content/Grid/map_grid.js" type="text/javascript" ></script>
    <script type="text/javascript" src="../Content/global.js"></script>	
    <script type="text/javascript">
        function OpenParam(Param, mode) {       
            if(mode == 1){
                openMyWin('FinianceAccountsReceivable_config_Edit.aspx?Param=' + Param, 'editParam', 560, 380);
            } else if (mode == 0) {
            openMyWin('FinianceAccountsReceivable_config_Edit.aspx?type=' + Param, 'newParam', 560, 380);
            }
        }

        function getids() {
            var arrTr = grid.getSelected();
            if (arrTr.length > 0) {
                if (!confirm('确认删除此明细?')) {
                    return;
                }
                var ids = "";
                for (var i = 0; i < arrTr.length; i++) {
                    if (ids != "") {
                        ids += ";";
                    }
                    ids += arrTr[i].oid;
                }
                document.getElementById('<%=dicids.ClientID %>').value = ids;
                document.getElementById('<%=lnkbtnDelete.ClientID %>').click();
            }
        }     
    </script>
</head>
<body  MS_POSITIONING="GridLayout" style="PADDING-RIGHT:10px;PADDING-LEFT:10px;PADDING-BOTTOM:10px;PADDING-TOP:10px">
		<form id="Form1" method="post" runat="server">
		    <div class="Container">         
         <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>参数列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                        <span class="menu" tabindex="0" menu="appGridMenu_mainmnu">操作<img src="../Content/Grid/mnuDown.gif">
                            <table id="appGridMenu_mainmnu" class="mnuList" cellspacing="0" cellpadding="3">
                                <colgroup>
                                    <col class="mnuLeft">
                                    <col class="mnuItm">
                                    <col align="right" width="20">
                                    <tbody>
                                        <tr tabindex="0"  action="getids()">
                                            <td>
                                            </td>
                                            <td colspan="2" nowrap>
                                                <asp:LinkButton ID="lnkbtnDelete" runat="server" OnClick="delete">删除</asp:LinkButton>
                                                <input type="hidden" runat="server" id="dicids" />
                                            </td>
                                        </tr>
                                    </tbody>
                            </table>
                        </span>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                        <span class="menu"  onclick="OpenParam(hidentype.value,0);">
                            <img class="mnuBtn" src="../Content/Grid/New_16_blue.gif"><span class="mnuBtn">新增</span></span>
                    </td>
                </tr>
            </tbody>
        </table>       
         
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
            <input id="hidentype" runat="server" name="hidentype" type="hidden" value="" />
             <asp:Repeater ID="RepeaterParms" runat="server" 
                        onitemcommand="RepeaterParms_ItemCommand">
                 <HeaderTemplate>
                    <table id="grid" class="grid" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="header">
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">超过月数</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                      <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:
                             hidden;width:96%;text-align:center;">系数(%)</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:
                             hidden;width:96%;text-align:center;">类型</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">备注</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                      <td width="14">
                        <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif" AlternateText="刷新列表"/> 
                    </td>
                </tr>
                 </HeaderTemplate>
                 <ItemTemplate>
                  <tr class="data" ondblclick="OpenParam('<%#Eval("ID") %>',1)" onclick="handleClick()"  oid='<%# Eval("ID") %>'>
                    <td><%#Eval("Code")%></td> 
                    <td><%#Eval("Value")%></td> 
                    <td><%#Eval("BusinessType").ToString() == "1"? "奖励" : "惩罚" %></td>
                    <td><%#Eval("Description")%></td>                    
                    <td></td>
                </tr>
                 </ItemTemplate>
                 <FooterTemplate>
                    </tbody>
                </table>  
                 </FooterTemplate>
             </asp:Repeater>                  
         </div>
		</form>
	</body>
</html>